﻿using AC.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AC.Window.Helper
{
    public class ConfigAccess
    {
        public static DBConnect GetDBConnectInConfig()
        {
            DBConnect data = new DBConnect();
            data.IP = Config.Read("IP");
            data.DBName = Config.Read("DBName");
            data.LoginName = Config.Read("LoginName");
            data.Password = Config.Read("Password");
            data.SchemaName = Config.Read("SchemaName");
            data.FolderPath = Config.Read("FolderPath");
            return data;
        }
    }
}
